import fetch from '@/utils/fetch'

const SpecApi = {
  getPageList (params) {
    return fetch({
      url: '/api/spec/param/page',
      method: 'get',
      params: params
    })
  },
  init (params) {
    return fetch({
      url: '/api/spec/param/list',
      method: 'get',
      params: params
    })
  },
  add (params) {
    return fetch({
      url: '/api/spec/param/add',
      method: 'post',
      data: params
    })
  },
  update (id, params) {
    return fetch({
      url: '/api/spec/param/' + id,
      method: 'put',
      data: params
    })
  },
//   del (params) {
//     return fetch({
//       url: '/api/spec/param/' + params,
//       method: 'delete'
//     })
//   }
del (params) {
    return fetch({
      url: '/api/spec/param',
      method: 'post',
      data: params
    })
  }
}
export default SpecApi
